package com.mydemo.design_pattern.action_type.state_pattern.impl;

import com.mydemo.design_pattern.action_type.state_pattern.Context;
import com.mydemo.design_pattern.action_type.state_pattern.State;

/**
 * <p></p >
 *
 * @author liming1
 * @version $Id: LeadState, v1.0 2019-09-24 10:03 liming1 Exp $
 */
public class MailState implements State {
    @Override
    public void handler(Context context) {
        if (context.isEnd()) {
            System.out.println("已经是终态");
            return;
        }
        System.out.println("请假成功");
    }
}
